package com.hang.model.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class CommentModelDTO {
    @ApiModelProperty(value = "评论标题",required = true)
    @NotBlank
    private String title;

    @ApiModelProperty(value = "故障id")
    private Long bugId;

    @ApiModelProperty(value = "故障名称")
    private String bugTitle;

    @ApiModelProperty(value = "任务id")
    private Long taskId;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "文档id")
    private Long documentId;

    @ApiModelProperty(value = "文档名称")
    private String documentTitle;

    //如在文档页面的评论，进去就是固定死的：文档类型的评论
    @ApiModelProperty(value = "评论类型[每个页面固定]",required = true)
    @NotNull
    private Integer commentType;

    @ApiModelProperty(value = "内容",required = true)
    @Size(min = 5,max = 2048,message = "字段长度需要在5-2048之间")
    private String content;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "评论人id",required = true)
    @NotNull
    private Long userId;

    @ApiModelProperty(value = "评论人姓名",required = true)
    @NotBlank
    private String realName;

    @ApiModelProperty(value = "图片附件地址列表")
    private List<String> imgUrlList;
}
